#!/usr/local/bin/lua
--
--	Chapter 18	-	Introduction
--
--	Michael Ge
--	2014.05.17
--

print("====================")

local sin = math.sin
local asin = math.asin

local deg = math.deg
local rad = math.rad

math.sin = function (x)
	return sin(rad(x))
end

math.asin = function(x)
	return asin(rad(x))
end

print("====================")

math.randomseed(os.time())

local x = math.random()
print(x)
local y = math.random(5)
print(y)
local z = math.random(10, 15)
print(z)

print("====================")